package com.youease.chris.manager
{
	public class AssetsManager
	{
		[Embed(source="assets/tools/cursor_arrow.png")]
		public static var cursor_arrow:Class;
		
		[Embed(source="assets/tools/cursor_drag_hand.png")]
		public static var cursor_drag_hand:Class;
		
		[Embed(source="assets/tools/brushes.png")]
		public static var brushes:Class;
		
		[Embed(source="assets/tools/fill.png")]
		public static var fill:Class;
		
		[Embed(source="assets/tools/rectangle.png")]
		public static var rectangle:Class;
		
		[Embed(source="assets/tools/eraser.png")]
		public static var eraser:Class;
		
		[Embed(source="assets/tools/nocross.png")]
		public static var nocross:Class;
		
		public function AssetsManager()
		{
		}
		
		public static function get cursor():Class {
			switch(GlobalObject.currentOperater) {
				case OperateEnum.SELECT:
					return cursor_arrow;
				case OperateEnum.DRAG_MAP:
					return cursor_drag_hand;
				case OperateEnum.BRUSH:
					return brushes;
				case OperateEnum.FILL:
					return fill;
				case OperateEnum.RECT_SELECT:
					return rectangle;
				case OperateEnum.ERASER:
					return eraser;
				case OperateEnum.NOCROSS:
					return nocross;
			}
			return null;
		}
	}
}